<?php
namespace app\index\controller;
use think\Controller;   //引入模型View
use app\common\model\snap_goods ; //订单模型


class Teacher extends Controller {
    public function index(){
        $Teacher = new snap_goods;
        $teachers = $Teacher->select();

        // 获取第0个数据000000000
        //$teacher = $teachers[0];

        //print_r($teachers[0]);
        //$teachers=$teachers->getData();
        //var_dump($teachers);
        //exit();
        $this->assign('snap_goods',$teachers);
        $htmls=$this->fetch();
        return $htmls;
    }
}

?>